import request from '@/utils/request'

export default {
  //创建订单
  createOrder(courseId) {
    return request({
      url: `/eduorder/order/createOrder/${courseId}`,
      method: 'post',
    })
  },
  // 通过订单号查询订单
  getOrder(orderNo) {
    return request({
      url: `/eduorder/order/getOrder/${orderNo}`,
      method: 'get',
    })
  },
  // 生成订单二维码
  createNative(orderNo){
    return request({
      url: `/eduorder/payLog/createNative/${orderNo}`,
      method: 'get',
    })
  },
  // 查询订单状态
  queryPayStatus(orderNo){
    return request({
      url: `/eduorder/payLog/queryPayStatus/${orderNo}`,
      method: 'get',
    })
  },
}

